Skip to content

Revisit the manual signing, revert the dialogs and add --provision switch #2393

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 10, 2017

Conversation

PanayotCankov
Copy link
Contributor

No description provided.

@PanayotCankov PanayotCankov force-pushed the cankov/manual-signing branch 5 times, most recently from cff49e7 to 25a30f8 Compare January 10, 2017 10:47
@PanayotCankov PanayotCankov merged commit 7742694 into master Jan 10, 2017
@@ -248,6 +258,13 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
basicArgs.push("-xcconfig", path.join(projectRoot, this.$projectData.projectName, "build.xcconfig"));
}

// if (this.$logger.getLevel() === "INFO") {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this code commented? Do we need it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It partially addresses the #2006
I've tested it locally but QAs won't have time to push it for this release and I didn't bother to go the right way and make a separate branch with this change only to merge in separate PR later. I hope we will uncomment this shortly after the release.

if (signing && signing.style === "Manual") {
for(let config in signing.configurations) {
let options = signing.configurations[config];
if (options.name !== this.$options.provision && options.name !== this.$options.provision) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

both statements check the same conditions, maybe we really want to be sure that options.name !== this.$options.provision 😄

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should have been .uuid

if (this.$options.provision) {
const pbxprojPath = path.join(projectRoot, this.$projectData.projectName + ".xcodeproj", "project.pbxproj");
const xcode = Xcode.open(pbxprojPath);
const signing = xcode.getSigning(this.$projectData.projectName);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can extract the whole code from here to line 358 in a separate method

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -58,7 +58,7 @@
"mute-stream": "0.0.5",
"open": "0.0.5",
"osenv": "0.1.3",
"pbxproj-dom": "1.0.3",
"pbxproj-dom": "^1.0.7",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not very safe - in case pbxproj-dom is released with breaking change or some unexpected behavior for us in a minor version, we'll be broken on live. That's why we prefer strict versions in package.json

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@PanayotCankov
Copy link
Contributor Author

@rosen-vladimirov I will adress all the comments in following PRs, the version should probably be fixed ASAP but the rest will probably happen shortly after the release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants